//
//  XS_CertItemCell.swift
//  XueDao
//
//  Created by Mac on 2020/12/11.
//

import UIKit

class XS_CertItemCell: UICollectionViewCell {

    @IBOutlet weak var imgView: UIImageView!
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var contentLabel: UILabel!
    
    var _model : XS_CertItemModel!
    public var model : XS_CertItemModel!{
        set{
            _model = newValue
            //设置数据
            imgView.sd_setImage(with: URL.init(string: newValue.certificateImgSrc), completed: nil)
            nameLabel.text = newValue.certificationName
            contentLabel.text = newValue.certificationDescription
        }
        get{
            return _model
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
